<%@page contentType="text/html" pageEncoding="UTF-8" import="arocms.Constans"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<logic:present name="<%=Constans.FILE_DETAILS_PATH%>">
    <h1>File information:</h1>
    <h2><bean:write name="<%=Constans.FILE_DETAILS_PATH%>" property="title"/></h2>
    <table>
        <tr>
            <td>Id</td>
            <td><bean:write name="<%=Constans.FILE_DETAILS_PATH%>" property="id"/></td>
        </tr>
        <tr>
            <td>Name</td>
            <td><bean:write name="<%=Constans.FILE_DETAILS_PATH%>" property="filename"/></td>
        </tr>
        <tr>
            <td>Size</td>
            <td><bean:write name="<%=Constans.FILE_DETAILS_PATH%>" property="filesize"/></td>
        </tr>
        <tr>
            <td>Type</td>
            <td><bean:write name="<%=Constans.FILE_DETAILS_PATH%>" property="filetype"/></td>
        </tr>
        <tr>
            <td>Description</td>
            <td><bean:write name="<%=Constans.FILE_DETAILS_PATH%>" property="description"/></td>
        </tr>
    </table>
    <html:link action="/Files/Download" paramId="id" paramName="<%=Constans.FILE_DETAILS_PATH%>" paramProperty="id">Download</html:link>
</logic:present>